function sealed(constructor: Function) {
    Object.seal(constructor);
    Object.seal(constructor.prototype);
}

@sealed
class Person {
    private name = "我是大帅哥!";
    private age = 20;
    protected height = 180;

    say() {
        return `${this.name} ===> ${this.age} ===> ${this.height}`;
    }
}

const p = new Person();
console.log(p.say());

export {Person};